class LoginData:

    @staticmethod
    def loginTestCase():
        # 数据存储格式：
        # 1、excel；2、json；3、yaml；4、xml
        data = [{'username': 'developer', 'password': 'developer', 'checkpoint': [{'code': 20000}, {'msg': '成功'}]},
                {'username': '', 'password': '', 'checkpoint': [{'code': 9999}, {'msg': '登录时失败'}]},
                {'username': 'huice', 'password': '', 'checkpoint': [{'code': 9999}]},
                {'username': '', 'password': '123', 'checkpoint': [{'code': 9999}, {'msg': '登录时失败'}]},
                {'username': 'huice', 'password': '123', 'checkpoint': [{'code': 9999}, {'msg': '登录时失败'}]}
                ]
        return data


class DeptData:

    @staticmethod
    def simplename():
        """
        部门名称
        :return:
        """
        from mimesis import Business
        p = Business('zh')
        return p.company()

    @staticmethod
    def seqnum():
        from mimesis import Numbers
        n = Numbers()
        return n.integer_number(1,10)